package cn.doitedu.dwetl.utls

import com.googlecode.javaewah.EWAHCompressedBitmap
import org.apache.commons.lang3.RandomUtils

object EwahDemo {
  def main(args: Array[String]): Unit = {
    val bm = EWAHCompressedBitmap.bitmapOf(1,3,5)

    /*for(i <- 0 until 100000000){
      bm.add(RandomUtils.nextInt(0,10000000))
    }*/

    println(bm.cardinality())

    println(bm.get(500))

  }

}
